package Java.BlackHorse.IO.ConvertStream;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;

public class IODemo1 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader(
                new File("IO\\ConvertStream\\gqlxc2.txt"),
                Charset.forName("GBK"));
        int ch;
        while((ch = fr.read()) != -1) System.out.print((char) ch);
        fr.close();
    }
}
